home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
number
/
numbers.bas
< prev
next >
Wrap
BASIC Source File
|
1995-05-09
|
1KB
|
60 lines
'
'These routines replace Visual Basic's "missing"
'binary coded decimal and IEEE string/numeric
'conversion routines found in QuickBASIC 4.X
'as well as the BASIC PDS.
'
'Marquis Computing
'
DefInt A-Z
Function CVD# (bcd$)
StrD.S = bcd$
LSet NumD = StrD
CVD = NumD.Num
End Function
Function CVI (bcd$) As Integer
StrI.S = bcd$
LSet NumI = StrI
CVI = NumI.Num
End Function
Function CVL& (bcd$)
StrL.S = bcd$
LSet NumL = StrL
CVL = NumL.Num
End Function
Function CVS! (bcd$)
StrS.S = bcd$
LSet NumS = StrS
CVS = NumS.Num
End Function
Function MKD$ (AnyNumber As Double)
NumD.Num = AnyNumber
LSet StrD = NumD
MKD$ = StrD.S
End Function
Function MKI$ (AnyNumber As Integer)
NumI.Num = AnyNumber
LSet StrI = NumI
MKI$ = StrI.S
End Function
Function MKL$ (AnyNumber As Long)
NumL.Num = AnyNumber
LSet StrL = NumL
MKL$ = StrL.S
End Function
Function MKS$ (AnyNumber As Single)
NumS.Num = AnyNumber
LSet StrS = NumS
MKS$ = StrS.S
End Function